-- GENERATED SPELL FOR [Sand Shark] --


function spell0_5435(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5435', 617, 1)
end

function Sorts_5435(pUnit, Event)
local choix_sorts_5435 = math.random(0, 0)
if choix_sorts_5435 == 0 then
pUnit:RegisterEvent('spell0_5435', 1, 1)
end
end

function mob5435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5435', math.random(1500, 3000), 1)
end

function mob5435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5435, 1, 'mob5435_Action')
RegisterUnitEvent(5435, 2, 'mob5435_Leave')
RegisterUnitEvent(5435, 3, 'mob5435_Kill')
RegisterUnitEvent(5435, 4, 'mob5435_Die')
